-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix errors in Restore_Reference_Defaults() subroutine #427
Fix errors in Restore_Reference_Defaults() subroutine #427
Conversation
8121f38
to
9422e33
Compare
Hmmm....these pull requests are now failing after merging @feathern's custom reference tests. Fortunately, this one (which only modifies the "Restore_Reference_Defaults()" routine) is also failing, which means there must be a problem with my fix to the restore defaults---probably specifically related to the custom reference stuff. Let me look into this. Hopefully it's just an issue with "Restore_Reference_Defaults()" and an easy fix. |
Looks like your fix passed the check. I'm cooking dinner right now, but I'll review this in the morning and we can go from there. And yes, the restore_reference_defaults was way out of date. A conversation for our monthly meeting I think (others are out of date too). |
Yes, it seems like I can't reference the custom reference stuff in the restore defaults routine yet. I'm not entirely sure what's going on, or whether the problem is on this end, or the new custom tests' end. Anyway, I will try rebasing the other pull requests of this (slightly "incomplete" Restore_Reference_Defaults() routine--should be a relatively easy thing to fix later, and I'd like to get that other stuff (which feels more critical, since there were some bugs) rolling. Hopefully this was the whole issue, and the other pull requests pass the checks after rebasing. We'll see! |
Two things:
It's worth noting that restore_reference_defaults is now only used for benchmarking and doesn't necessarily need to actually restore all of the default values as it did in the past. |
OK, I will go ahead and delete these. I'm fairly unfamiliar with these routines. Basically, I went off the lines 1145 ! Restore all variables in this module to their default state. Anyway, it sounds like we'll be discussing these routines in general, so as long as you think it's doing what it's supposed to now, that's fine. |
...in Restore_Reference_Defaults(). As per Nick's request.
Just fixed this but it triggered another test (I submitted commit directly from Github). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, looks good. Merging now.
I went ahead and resolved the merge conflict. |
The Restore_Reference_Defaults() routine of PDE_Coefficients was a bit out of date. Some variables were not restored to their proper values, or at all. Not all the allocatable arrays were deallocated. This pull request should fix these errors. It incorporates the code cleanup from my other pull request (#426 ).